from django.db import models
import time


class User(models.Model):
    openid = models.CharField(max_length=32, primary_key=True)
    nickname = models.CharField(max_length=255)
    sex = models.IntegerField(null=True, blank=True)
    language = models.CharField(max_length=255, null=True, blank=True)
    city = models.CharField(max_length=255, null=True, blank=True)
    province = models.CharField(max_length=255, null=True, blank=True)
    country = models.CharField(max_length=255, null=True, blank=True)
    avatar = models.CharField(max_length=1000, null=True, blank=True)

    class Meta:
        db_table = 'user'
        verbose_name_plural = '用户'
